import request from '@/utils/request'
// 登录接口
export const login = ({ identifier, password }) => {
  return request.post('/auth/local', { identifier, password })
}
// 获取用户基本信息
export const userInfo = () => {
  return request.get('/users/me')
}

// 注册接口
export const register = (data) => {
  return request.post('/auth/local/register', data)
}
